<?php

namespace app\admin\validate;

class Villageresources extends Base
{
    protected $rule = [
        'name' => 'require|isNotEmpty',
        'price' => 'require|number',
        'number' => 'require|number',
        'contractYears' => 'require|isNotEmpty',
        '__token__' => 'token'
    ];

    protected $message = [
        'name' => '资源名称不能为空',
        'price.require' => '价格不能为空',
        'price.number' => '价格必须为数字',
        'number.require' => '数量不能为空',
        'number.number' => '数量必须为数字',
        'contractYears' => '合同拟定年限不能为空',
    ];
}